

(function(){

    let Const = (function(){
        let v = {
            PI : 3.14159
        };
        return {
            get: function(name) {
                if (name in v) {
                    return v[name];
                }
                return undefined;
            }
        };
    }());

    //console.log(Const[haha]);
    console.log(Const.get('PI'));
    console.log(Const.get('haha'));


}());